jQuery(function(){
    jQuery('#edit-ghi-chu').keyup(function(){
        var length = jQuery(this).val().length;
        jQuery('#ghi-chu-length').text(length);
    });
    jQuery('#edit-ghi-chu').keyup();
});/**
 * Created by JetBrains PhpStorm.
 * User: SonTung
 * Date: 12/11/11
 * Time: 11:06 AM
 * To change this template use File | Settings | File Templates.
 *//**
 * Created by JetBrains PhpStorm.
 * User: SonTung
 * Date: 12/13/11
 * Time: 9:33 PM
 * To change this template use File | Settings | File Templates.
 */
jQuery(function(){
    jQuery('#edit-so-luong').keyup(function(){
        var val = currencyToNumber(jQuery(this).val());
        if (isNaN(val)) {
            jQuery(this).val('');
            val = 0;
        }
        else {
            jQuery(this).val(numberToCurrency(val));
        }
    });
});
jQuery(function(){
    jQuery('#edit-so-luong-hong').keyup(function(){
        var val = currencyToNumber(jQuery(this).val());
        if (isNaN(val)) {
            jQuery(this).val('');
            val = 0;
        }
        else {
            jQuery(this).val(numberToCurrency(val));
        }
    });
});
jQuery(function(){
    jQuery('#edit-gia-tien').keyup(function(){
        var val = currencyToNumber(jQuery(this).val());
        if (isNaN(val)) {
            jQuery(this).val('');
            val = 0;
        }
        else {
            jQuery(this).val(numberToCurrency(val));
        }
    });
});